<?php 

$pageId=$portlet_sharedblocks_pageId;//getObjByKey("portal_sharedblock_container","pageId","id",$coupleId);

if ($pageId!=null || $pageId!="")
{


		$pageName=getObjByKey("portal_pages","name","id",$pageId);
?>


<a href="/?pageName=<?=$pageName?>&mode=edit">Edit Shared Block</a>

<?php 
	
	}

?>